package com.example.jobback.controller.manager;

import com.example.jobback.resp.manager.company.register.RecruiterRegisterResp;
import com.example.jobback.result.Result;
import com.example.jobback.service.manager.ManagerDataProfileService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Set;

/**
 * @ClassName: ManagerDataProfileController
 * @Description:管理员-数据概览控制器
 * @Author: lhb
 * @Date: 2025/6/24
 */
@RestController
@RequestMapping("/manager/data/profile")
@Tag(name = "管理员-数据概览控制器",description = "管理员数据概览服务的相关接口,")
public class ManagerDataProfileController {


    private final ManagerDataProfileService managerDataProfileService;

    public ManagerDataProfileController(ManagerDataProfileService managerDataProfileService) {
        this.managerDataProfileService = managerDataProfileService;
    }

    //企业用户数，活跃岗位，简历投递数
    @Operation(summary = "获取总用户数",description = "无")
    @GetMapping("/getAllUserNum")
    @ApiResponse(description = "返回总用户数")
    public Result<Object> getAllUserNum(){
        return managerDataProfileService.getAllUserNum();
    }


    @Operation(summary = "获取企业用户数",description = "无")
    @GetMapping("/getCompanyNum")
    @ApiResponse(description = "返回企业用户数")
    public Result<Object> getCompanyNum(){
        return managerDataProfileService.getCompanyNum();
    }

    @Operation(summary = "获取活跃岗位数",description = "无")
    @GetMapping("/getActivePositions")
    @ApiResponse(description = "返回活跃岗位数")
    public Result<Object> getActivePositions(){
        return managerDataProfileService.getActivePositions();
    }

    @Operation(summary = "获取简历投递数",description = "该功能暂时未完成")
    @GetMapping("/getResumeDelivers")
    @ApiResponse(description = "返回简历投递数")
    public Result<Object> getResumeDelivers(){
        return managerDataProfileService.getResumeDelivers();
    }


}
